package com.mm.feign;

import com.mm.config.FeignConfiguration;
import com.mm.domain.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "MMSPRINGBOOT", configuration = FeignConfiguration.class)
public interface UserFeign{
    //非公用
    @GetMapping("/user/findByName")
    User findByName(@RequestParam("username") String username);
}
